﻿<html>
<head>
<title>Work3</title>
</head>

<body>

<?php
$db = "./Northwind.mdb" ;  

$conn = new COM("ADODB.Connection") ;
$sql = "DRIVER={Microsoft Access Driver (*.mdb)} ;
               DBQ=". realpath($db) ." ;" ;
$conn->open($sql);
$rs = $conn->execute("SELECT * FROM Orders");
               while (!$rs->EOF) {
               echo $rs->Fields['OrderID']->Value . "<br>" ;
               $rs->MoveNext() ;
               }
$rs->Close() ;
$conn->Close() ;
?>


</body>
</html>